home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_06
/
dwyer
/
lehmer.mat
< prev
next >
Wrap
Text File
|
1995-02-10
|
236b
|
7 lines
Listing 1
(* rand.ma -- a couple of lines of Mathematica code
that execute a Lehmer generator
Print the 10,000th value after initializing at one *)
Rand[x_]:=Mod[41358*x, 2147483647]
x=1; Do[ x=Rand[x], {i,10000}];Print[x];